package com.v2.k9;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 测试spring避免自己注入自己
 */
@Configuration
public class AppConfig {

	@Bean
	public User user() {
		return new User("user0");
	}

	@Bean
	public User user1() {
		return new User("user1");
	}

}
